﻿using School;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace TestSchoolFuncionality
{
    
    [TestClass()]
    public class StudentTest
    {

        [TestMethod()]
        [ExpectedException(typeof(ArgumentOutOfRangeException),"The student name can`t be empty string")]
        public void StudentNameEmptyTestConstructorTest()
        {
            string name = string.Empty; 
            int facultyNumber = 10000;
            Student target = new Student(name, facultyNumber);
        }

        [TestMethod()]
        [ExpectedException(typeof(ArgumentOutOfRangeException), "Invalid faculty number")]
        public void FacultyNumberConstructorTest()
        {
            string name = "pesho"; 
            int facultyNumber = 0; 
            Student target = new Student(name, facultyNumber); 
        }

        [TestMethod()]
        [ExpectedException(typeof(ArgumentNullException), "The student name can`t be null")]
        public void StudentNameNullTestTest()
        {
            string name = null;
            int facultyNumber = 101010;
            Student target = new Student(name, facultyNumber); 
        }
    }
}
